package syntaxTree.varDecl;

import syntaxTree.type.*;
import syntaxTree.id.*;

public class varDeclare extends varDecl{	// -> Type id;
	type t;
	id id;
	public varDeclare(type t, id id)
	{
		this.vd = new varInit();
		this.t = t;
		this.id = id;
	}
	public varDeclare(varDecl vd, type t, id id)
	{
		this.vd = vd;
		this.t = t;
		this.id = id;
	}
	public String toString()
	{
		return (vd.toString()+t.toString()+" "+id.toString()+";");
	}
	public String toC()
	{
			return (vd.toC()+t.toC()+" "+id.toC()+";");
	}
}
